﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="ManageElections.aspx.cs" Inherits="OVS.ManageElections" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="Head1" runat="server">
<link href="~/OVS.css" rel="stylesheet" type="text/css" />
<link href="~/themes/ui-lightness/jquery.ui.all.css" rel="stylesheet" type="text/css" />


 
    <title></title>
     <script type="text/javascript" src="<%= ResolveUrl("~/Scripts/jquery.js") %>" ></script> 
       <script type="text/javascript" src="<%= ResolveUrl("~/Scripts/jquery.ui.datepicker.js") %>" ></script> 
       <script type="text/javascript" src="<%= ResolveUrl("~/Scripts/jquery.ui.core.js") %>" ></script> 
    <script type="text/javascript">
        $(document).ready(function() {
        $("#<%=txtStartDate.ClientID %>").datepicker({ dateFormat: 'mm-dd-yy', changeMonth: true, changeYear: true, yearRange: '2011:2020' });
        $("#<%=txtEndDate.ClientID %>").datepicker({ dateFormat: 'mm-dd-yy', changeMonth: true, changeYear: true, yearRange: '2011:2020' });
        });
    </script>
</head>
<body>
    <form id="form1" runat="server">
  <div> <center>
         <asp:Label ID="lblMsg" runat="server" CssClass="message"></asp:Label>
                <asp:Label ID="lblErrMsg" runat="server" CssClass="error"></asp:Label>
       <asp:ValidationSummary ID="vsmErrors" runat="server" CssClass="summarymessage" 
       Style="text-align: left;width:20%" />
            
                 <div>
                    <asp:Label ID="Label2" runat="server" CssClass="ParaTitle">Edit / Update Elections </asp:Label>
                    </div>
                    
            <table cellpadding = "2" cellspacing = "2">
                <tr>
                    <td><asp:Label ID="Label3" runat="server" CssClass="label" >Election Name </asp:Label></td>
                    <td><asp:TextBox ID = "txtname" CssClass="textfield" runat = "server"></asp:TextBox>
                      <span id="Span3" runat="Server" class="labelRequiredField">*</span>
                   <asp:RequiredFieldValidator
                                ID="rfvName" runat="server" ControlToValidate="txtname" 
                                ErrorMessage="Please enter Election Name" >&nbsp;</asp:RequiredFieldValidator>
                    </td>
                </tr>
                   <tr>
                    <td><asp:Label ID="Label5" runat="server" CssClass="label" >Election Date</asp:Label></td>
                    <td>
                   
                    <asp:TextBox ID = "txtStartDate" CssClass="textfield" runat = "server"></asp:TextBox>
                      <span id="Span5" runat="Server" class="labelRequiredField">*</span>
                     <asp:RequiredFieldValidator
                                ID="RequiredFieldValidator2" runat="server" ControlToValidate="txtStartDate" 
                                ErrorMessage="Please enter Election Date" >&nbsp;</asp:RequiredFieldValidator>
                    </td>
                    
                </tr>
                
                  </tr>
                   <tr>
                    <td><asp:Label ID="Label1" runat="server" CssClass="label" >Result Date</asp:Label></td>
                    <td>
                   
                    <asp:TextBox ID = "txtEndDate" CssClass="textfield" runat = "server"></asp:TextBox>
                      <span id="Span1" runat="Server" class="labelRequiredField">*</span>
                     <asp:RequiredFieldValidator
                                ID="RequiredFieldValidator1" runat="server" ControlToValidate="txtEndDate" 
                                ErrorMessage="Please enter Result Date" >&nbsp;</asp:RequiredFieldValidator>
                    </td>
                    
                </tr>
                
                </table>
                
                <table>
                    <tr>
                        <td>
                            <asp:Button ID="btnSave" runat="server" Text="Save" OnClick="btnSave_Click" />
                            <asp:Button ID="btnReset" CausesValidation="false" runat="server" Text="Reset" OnClick="btnReset_Click" />
                            
                        </td>
                    </tr>
                </table>
      </center>
    </div>
    </form>
</body>
</html>
